package com.magpiebridge.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import org.assertj.core.internal.bytebuddy.implementation.bind.annotation.Empty;
import org.springframework.boot.autoconfigure.domain.EntityScan;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Data
@TableName("user")
public class User {
    @TableId(type = IdType.AUTO)
    private Integer id;
    @TableField("userName")
    private String name;
    private String headPhoto;
    private Boolean state;
    private String idCard;
    private Integer phone;
    private Boolean vip;
    private Integer userMoney;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date createTime;
}
